package 程序员代码面试指南.位运算;

public class 数据交换 {

    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println("a: " + a + " b: " + b);
        a ^= b;
        b ^= a;
        a ^= b;
        System.out.println("a: " + a + " b: " + b);

    }
}
